package com.fesine.hibernate.model;

import java.util.HashSet;
import java.util.Set;

/**
 * 班组实体类
 * Created by Fesine on 2016/5/21.
 */
public class Class {

    private long id;

    private String name;

    private Set<Student> students= new HashSet<>();

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Student> getStudents() {
        return students;
    }

    public void setStudents(Set<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "Class{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", students=" + students +
                '}';
    }
}
